#ifndef GPIO_H
#define GPIO_H

#include <QObject>

enum GPIODirection {
	GPIO_IN = 0,
	GPIO_OUT = 1
};

enum GPIOError {
	GPIO_ERROR_NONE = 0,
	GPIO_ERROR_OPEN = 1
};

class GPIO
{
public:
	static GPIOError open( unsigned int pin );
	static GPIOError close( unsigned int pin );
	static GPIOError direction( unsigned int pin, unsigned int dir );
	static GPIOError write( unsigned int pin, bool val );
	static GPIOError read( unsigned int pin, bool & val );
};

#endif // GPIO_H
